package pl.edu.pw.polygen.util;

import org.springframework.context.NoSuchMessageException;
import org.springframework.web.context.support.WebApplicationObjectSupport;

public class ApplicationSupport extends WebApplicationObjectSupport {

	public String getMessage(String key) {
		try {
			return getMessageSourceAccessor().getMessage(key);
		} catch (NoSuchMessageException  e) {
			return key;
		}
	}

}
